package com.xiaohao.communication.ESconfig;

import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.search.Scroll;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ScrollConfig {

    @Bean
    public Scroll scroll() {
        return new Scroll(TimeValue.timeValueMinutes(10));
    }
}
